
import axios from '@/functions/request';
function addItem(params){
    return new Promise((resolve, reject)=>{
        axios.formPost( "/api/auth/sysfun/doSaveFunction",params).then(res=>{
            resolve(res)
        }).catch(e => {
            reject(e)
        });
    })
    
}
function deleteItem(params){
    return new Promise((resolve, reject)=>{
        axios.formPost( "/api/auth/sysfun/doDelFunction",params).then(res=>{
            resolve(res)
        }).catch(e => {
            reject(e)
        });
    })
    
}
function editItem(params){
    return new Promise((resolve, reject)=>{
        axios.formPost( "/api/auth/sysfun/doModFunction",params).then(res=>{
            resolve(res)
        }).catch(e => {
            reject(e)
        });
    })

}
export {
    deleteItem,
    addItem,
    editItem
}